<template>
	<view class="all">
		<view class="containers" v-if="dataList.length">
			<view class="item" v-for="(item,index) in dataList" :key="index">
				<view class="left">
					<image :src="item.info.img" mode=""></image>
				</view>
				<view class="right">
					<view class="line1">
						<view class="">
							{{item.info.name}}
						</view>
						<view class="" style="margin-left:89rpx ;">
							{{item.info.gender=='1'?'女':'男'}}
						</view>
					</view>
					<view class="line2">
						联系电话：{{item.info.phone}}
					</view>
					<view class="line3">
						证件号码：{{item.card}}
					</view>
					<view class="line4">
						是否成交：{{item.deal}}
					</view>
				</view>
			</view>
		</view>
		<view class="noDates" v-else>
			<view class="noDate">
				<image style="width: 374rpx;height: 270rpx;" src="@/static/img/no_list (1).png" mode=""></image>
				<view class="">
					暂无数据
				</view>
			</view>
			
		</view>
	</view>
</template>

<script>
	import {getClientList} from '@/utils/api.js'
	export default {
		data() {
			return {
				dataList:[]
			};
		},
		onShow() {
			getClientList().then(res=>{
				if(res.data.meta.status==200){
					this.dataList=res.data.data
				}
			})
		}
	}
</script>

<style lang="scss" scoped>
	.all{
		.noDates{
			.noDate{
				height:600rpx;
				display: flex;
				flex-direction: column;
				justify-content: center;
				align-items: center;
			}
		}
		.containers{
			margin-top: 10rpx;
			.item{
				// height: 204rpx;
				margin-bottom: 1rpx;
				background-color: #ffffff;
				display: flex;
				.left{
					// height: ;
					
					border-radius: 70rpx;
					padding: 32rpx 24rpx;
				}
				.left :first-child{
					height: 140rpx;
					width: 140rpx;
					border-radius: 70rpx;
				}
				.right{
					padding: 32rpx 5rpx;
					.line1{
						display: flex;
						font-size: 28rpx;
						font-weight: bold;
						color: #242424;
					}
					.line2{
						font-size: 24rpx;
						font-weight: bold;
						color: #242424;
					}
					.line3,.line4{
						font-size: 24rpx;
						font-weight: bold;
						color: #242424;
					}
				}
			}
		}
	}
</style>
